<?php /* Smarty version Smarty-3.1.6, created on 2013-06-22 19:52:08
         compiled from "./templates\list.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2121051c5561458f648-86580955%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5cd373993f4460d6141347102b68e8ea90bb17f8' => 
    array (
      0 => './templates\\list.tpl',
      1 => 1371910925,
      2 => 'file',
    ),
    'ed0d02929e4f690c7f16493a53202e20bb1e8f2a' => 
    array (
      0 => 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\shakti\\admin\\templates\\main.tpl',
      1 => 1371896650,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2121051c5561458f648-86580955',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_51c5561471bac',
  'variables' => 
  array (
    's_activId' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51c5561471bac')) {function content_51c5561471bac($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<head>
<title>Shakti</title>
<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.autocomplete.js" ></script>

<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="./css/jquery-ui.css" rel="stylesheet" type="text/css"/>
<link href="./css/menu.css" rel="stylesheet" type="text/css" />
<link href="./css/jquery.toastmessage-min.css" type="text/css" rel="stylesheet"/>
<link href="./css/jquery.autocomplete.css" type="text/css" rel="stylesheet" media="all">

<script language="javascript">
function passwordMatch()
{
  if(document.party.userpassword.value != document.party.userpasswordCom.value)
  {
    alert("Password Miss Match!!!!!");
    document.party.userpasswordCom.value="";
    document.party.userpassword.focus();
  }
}
</script>

<script type="text/javascript">
//SuckerTree Horizontal Menu (Sept 14th, 06)
//By Dynamic Drive: http://www.dynamicdrive.com/style/
var menuids=["treemenu1"] //Enter id(s) of SuckerTree UL menus, separated by commas
function buildsubmenus_horizontal()
{
  for (var i=0; i<menuids.length; i++)
  {
    var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++)
    {
  		if(ultags[t].parentNode.parentNode.id==menuids[i])
  		{ //if this is a first level submenu
  			ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px" //dynamically position first level submenus to be height of main menu item
  			ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"
		  }
		  else
		  { //else if this is a sub level menu (ul)
  		  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
      	ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"
		  }
      ultags[t].parentNode.onmouseover=function()
      {
        this.getElementsByTagName("ul")[0].style.visibility="visible"
      }
      ultags[t].parentNode.onmouseout=function()
      {
        this.getElementsByTagName("ul")[0].style.visibility="hidden"
      }
    }
  }
}
if (window.addEventListener)
window.addEventListener("load", buildsubmenus_horizontal, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus_horizontal)
</script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
    <td class="content">
    <?php if (strlen($_smarty_tpl->tpl_vars['s_activId']->value)>0){?>
      <a href="logout.php" class="link">Logout</a> |
      <b>User Name : <?php echo $_smarty_tpl->tpl_vars['s_activId']->value;?>
</b>
    <?php }else{ ?>
      <a href="checkLogin.php" class="link">Login</a>
    <?php }?>
    </td>
  </tr>
  <?php if (strlen($_smarty_tpl->tpl_vars['s_activId']->value)>0){?>
  <tr align="center">
    <td class="bluebg1">
      <div class="suckertreemenu">
      <br />
        <ul id="treemenu1">
	          <li><a href="#" class="link" style="width:100px;">Master</a>
	            <ul>
	              <li><a href="changePwd.php" class="link" align="left">Change Password</a></li>
	              <li><a href="list.php" class="link" align="left"> User List</a></li>
	              <li><a href="menu.php" class="link" align="left">Menu</a></li>
	            </ul>
	          </li>
	          </li>
            </ul>
          </li>
        </ul>
      <br /><br /><br />
      </div>
    </td>
  </tr>
  <?php }?>
  <tr>
  <td class="content">
   
<form name="party" action="" method="post">
<center><font color='red'><b><?php echo $_smarty_tpl->tpl_vars['msg']->value;?>
</b></font></center>
<table align="center" border="0" cellpadding="2" cellspacing="2" >
<tr>
  <td align="center" class="table1" colspan="2"> * *CREATE NEW USER * *</td>
</tr>
<tr>
  <td class="table1" align="left"><b>User Name :</b></td>
  <td class="table1"><input type="text" name="userName" id="userName" autofocus=autofocus required="required" ></td>
</tr>
<tr>
  <td class="table1" align="left"><b>Password :</b></td>
  <td class="table1"><input type="password" name="userpassword" id="userpassword"  required="required" ></td>
</tr>
<tr>
  <td class="table1" align="left"><b>Confirm Password :</b></td>
  <td class="table1"><input type="password" name="userpasswordCom" id="userpasswordCom" onblur="passwordMatch();"  required="required" ></td>
</tr>
<tr>
  <td class="table1" align="center" colspan="2"><input type="submit" name="userIns"  value="Create User" class="button" /></td>
</tr>
</table>
<br>
<br>
<table align="center" border="0" cellpadding="2" cellspacing="2" >
<tr>
  <td align="center" class="table1" colspan="2"><b>USER LIST</b></td>
</tr>
<tr>
  <td class="table2" align="left"><b>User Name</b></td>
  <td class="table2" align="left"><b>User Type</b></td>
  <td class="table2" align="left"><b>Delete</b></td>
</tr>
<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['user'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['user']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['name'] = 'user';
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['userArr']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['user']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['user']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['user']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['user']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['user']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['user']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['user']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['user']['total']);
?>
<tr>
	<td class="table2" align="center"><?php echo $_smarty_tpl->tpl_vars['userArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['user']['index']]['userName'];?>
</td>
	<td class="table2" align="center"><?php echo $_smarty_tpl->tpl_vars['userArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['user']['index']]['userType'];?>
</td>
	<td class="table2" align="left"><a onClick='return confirm("R U Sure U Want To Delete");' href="list.php?userId=<?php echo $_smarty_tpl->tpl_vars['userArr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['user']['index']]['userId'];?>
">Delete</a></td>
</tr>
<?php endfor; endif; ?>
</table>	
</form>

  </td>
  </tr>
  <tr>
    <td class="bluebg1">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="images/corner3.gif" width="6" height="7" /></td>
        <td></td>
        <td align="right"><img src="images/corner4.gif" width="6" height="7" /></td>
      </tr>
    </table>
    </td>
  </tr>
</table>
</body>
</html><?php }} ?>